package com.example.vspm.service.impl;

import com.example.vspm.entity.Receiver;
import com.example.vspm.mapper.ReceiverMapper;
import com.example.vspm.mapper.SendTableMapper;
import com.example.vspm.service.ReceiverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LCL
 * @date 2022/3/13
 * @desc
 */
@Service
public class ReceiverServiceImpl implements ReceiverService {
    @Autowired
    ReceiverMapper receiverMapper;
    @Override
    public List<Receiver> selectReceiver() {
        return receiverMapper.selectReceiver();
    }

    @Override
    public void updateRefuseCount(int pid3) {
        receiverMapper.updateRefuseCount(pid3);
    }

    @Override
    public void updateScoreCount(int pid3) {
       receiverMapper.updateScoreCount(pid3);
    }


    @Override
    public void updateScore(float score, int pid3) {
        receiverMapper.updateScore(score,pid3);
    }
}
